package com.shine.app.bean;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;

public class RateGroupBean extends BaseBean {

	private static final long serialVersionUID = 1L;
	@SerializedName("RateGroupFrom")
	private int rateGroupFrom;
	@SerializedName("RateGroupTo")
	private int rateGroupTo;
	@SerializedName("Courses")
	private GolfCourseBean[] courses;

	public int getRateGroupFrom() {
		return rateGroupFrom;
	}

	public void setRateGroupFrom(int rateGroupFrom) {
		this.rateGroupFrom = rateGroupFrom;
	}

	public int getRateGroupTo() {
		return rateGroupTo;
	}

	public void setRateGroupTo(int rateGroupTo) {
		this.rateGroupTo = rateGroupTo;
	}

	public GolfCourseBean[] getCourses() {
		return courses;
	}

	public void setCourses(GolfCourseBean[] courses) {
		this.courses = courses;
	}

	public static List<GolfCourseBean> parse(RateGroupBean rateGroupBean) {
		List<GolfCourseBean> list = new ArrayList<GolfCourseBean>();
		GolfCourseBean[] golfCourseBeans = rateGroupBean.getCourses();
		for (int j = 0, length = golfCourseBeans.length; j < length; j++) {
			list.add(golfCourseBeans[j]);
		}
		return list;
	}
}
